#include "ExitListener.h"

ExitListener::ExitListener(OIS::Keyboard *keyboard) : mKeyboard(keyboard)
{
}

bool ExitListener::frameStarted(const Ogre::FrameEvent& evt)
{
	mKeyboard->capture();
	if(mKeyboard->isKeyDown(OIS::KC_ESCAPE))
		return false;

	return true;
}

ExitListener::~ExitListener()
{
}
